﻿using SqlSugar;

namespace WCS.Entities.User
{
    public class UserInfo
    {
        /// <summary>
        /// 用户编号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int UserId { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 用户密码
        /// </summary>
        public string Password { get; set; }

        public int Sex { get; set; }

        [SugarColumn(IsNullable = true)]
        public string Email { get; set; }

        /// <summary>
        /// 角色,用户可以有多个角色
        /// </summary>
        public Role Role { get; set; }

        /// <summary>
        /// 头像图片
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string Avatar { get; set; }


    }
}
